package com.xuyang.other;

public class Flags {
	public final static String IP="http://192.168.43.209:8080/BookManagerServers";
	//查看某个类别的图书URL
	public final static  String URL=IP+"/GetDataServlet?category=CATEGORY&from=FIRST&to=LAST";
	//搜索某本书的URL
	public final static String SELECT_BOOK_URL=IP+"/SelectBookServlet?bookName=BOOKNAME&from=FIRST&to=LAST";
	//预阅某本书的URL
	public final static String BORROW_BOOK=IP+"/BorrowBookServlet?bookId=BOOKID&userName=USERNAME";
	//用户登录
	public final static String USER_LOGIN=IP+"/UserLoginServlet?userName=USERNAME&passWord=PASSWORD";
	//查询当前借阅和历史借阅
	public final static String BORROW_HISTORY=IP+"/SelectBorrowHistory?uname=UNAME&flag=FLAG";
	//图书添加
	public final static String BOOK_ADD=IP+"/BookManageServlet?flag=1&name=NAME&category=CATEGORY&writer=WRITER&press=PRESS&languages=LANGUAGES&introduce=INTRODUCE&remarks=REMARKS";
	//图书归还和挂失
	public final static String BOOK_MANAGE=IP+"/BookManageServlet?flag=FLAG&bookId=ID";
	//重置用户密码
	public final static String RESET_PW=IP+"/ResetPwServlet?uname=UNAME";
	//用户姓名
	public static String UserName="";
	//用户权限等级
	public static int Level=-2;
}
